package Mangos::DB::Mangos::BattlegroundTemplate;

use strict;

use base qw(Mangos::DB::Mangos);

__PACKAGE__->meta->setup
(
    table   => 'battleground_template',

    columns => 
    [
        id                => { type => 'integer', not_null => 1 },
        MinPlayersPerTeam => { type => 'integer', default => '0', not_null => 1 },
        MaxPlayersPerTeam => { type => 'integer', default => '0', not_null => 1 },
        MinLvl            => { type => 'integer', default => '0', not_null => 1 },
        MaxLvl            => { type => 'integer', default => '0', not_null => 1 },
        AllianceStartLoc  => { type => 'integer', not_null => 1 },
        AllianceStartO    => { type => 'float', not_null => 1, precision => 32 },
        HordeStartLoc     => { type => 'integer', not_null => 1 },
        HordeStartO       => { type => 'float', not_null => 1, precision => 32 },
    ],

    primary_key_columns => [ 'id' ],
);

1;

package Mangos::DB::Mangos::BattlegroundTemplate::Manager;

use strict;
use warnings;

use base 'Rose::DB::Object::Manager';

sub object_class { 'Mangos::DB::Mangos::BattlegroundTemplate' }

__PACKAGE__->make_manager_methods('battleground_template');

1;
